package tk.mybatis.springboot.model;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

import tk.mybatis.springboot.share.util.PropertiesUtil;

public class InformationMsg implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -6395639221551630780L;

	private String brandName;
	
	private String msg = "模糊匹配车型信息";
	
	private String sendTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
	
	private String sign = "";
	
	private final String operType = "JYK_LIKE";
	
	private Map<String, String> data = new HashMap<String, String>();

	public static InformationMsg buildMessage(String brandName, String page){
		InformationMsg msg = new InformationMsg();
		msg.data.put("applicationID", PropertiesUtil.getMessage("application_id"));
		msg.data.put("brandName", brandName);	
		msg.data.put("row", "15");
		msg.data.put("page", page);
		return msg;
	}
	
	public String getBrandName() {
		return brandName;
	}

	public void setBrandName(String brandName) {
		this.brandName = brandName;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String getSendTime() {
		return sendTime;
	}

	public void setSendTime(String sendTime) {
		this.sendTime = sendTime;
	}

	public String getSign() {
		return sign;
	}

	public void setSign(String sign) {
		this.sign = sign;
	}

	public Map<String, String> getData() {
		return data;
	}

	public void setData(Map<String, String> data) {
		this.data = data;
	}

	public String getOperType() {
		return operType;
	}
}
